home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / glisp / glisp.000 / GLISP.UNIX.TAR / closunix / closerr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-03  |  3.4 KB  |  129 lines

  1. /*                 GRAPHIC LISP            */
  2. /*        Scritto nel 1991-94 da Zoia Andrea Michele     */
  3. /*        Via Pergola #1 Tirano (SO) Tel. 0342-704210    */
  4. /* File closerr.h */
  5.  
  6. /*  unsigned err_type     xxxx MMMM PPPP TTTT  */
  7. /* P=tipo del puntatore */
  8. /* T=tipo dell' errore  */
  9. /* M=tipo del messaggio */
  10.  
  11. #define ERR_TMASK        0xf
  12. #define ERR_TNORM        0x0    /* la funzione ritorna ERROR */
  13. #define ERR_TCRIT        0x1    /* la funzione fa un longjump */
  14.                     /* verso il main-loop */
  15. #define ERR_TBLVL        0x2    /* come sopra ma si ritorna */
  16.                     /* al break-level corrente */
  17.  
  18. #define ERR_PMASK        0xf0
  19. #define ERR_PVOID        0x00    /* il puntatore e' NULL */
  20. #define ERR_PSTRING        0x10    /* il puntatore e' char */
  21. #define ERR_PNODE        0x20    /* il puntatore e' un nodo */    
  22. #define ERR_PNINT        0x30    /* il puntatore e' un n_int */
  23.  
  24. #define ERR_MMASK        0xf00
  25. #define ERR_MERROR        0x100    /* ERROR: */
  26. #define ERR_MWARN        0x200    /* WARNING: */
  27. #define ERR_MINTERNAL        0x300    /* INTERNAL: */
  28. #define ERR_MNONE        0x400    /* non si stampa nulla e si salta */
  29.                     /* al punto specificato da ERR_TXXXX */
  30. #define ERR_MERRORMSGBOX    0x500
  31. #define ERR_MINTERNALMSGBOX    0x600
  32. #define ERR_MWARNMSGBOX        0x700
  33.  
  34. #define LONGJMP_SET        0    
  35. #define LONGJMP_CRITICAL    1    /* errore critico ad.es quando e' */
  36.                     /* finita la memoria */
  37.                     /* questo errore non e'recuperabile */
  38. #define LONGJMP_STACK        2    /* stack overflow */
  39. #define LONGJMP_CONTROLC    3    /* control-c schiacciato */
  40. #define LONGJMP_ERROR        4    /* errore recuperabile */
  41. #define LONGJMP_CONTINUE    5    /* usato dalla funzione CONTINUE */
  42.                     /* per uscire dal break-loop */
  43. #define LONGJMP_ASYNCLOAD    6    /* Per caricare un file*/
  44.  
  45.  
  46. #define E_ZERO                  0
  47. #define E_SUPERDUP              1
  48. #define E_CMDLINE               2
  49. #define E_CTRLC                 3
  50. #define E_STACK                 4
  51. #define E_CNFFILE               5
  52. #define E_PRINT_BAD1            6
  53. #define E_PRINT_BAD2            7
  54. #define E_HASHFULL              8
  55. #define E_UNMATCHCLASS          9 
  56.  
  57. #define E_AMBIGUOUSMETHOD       10 
  58. #define E_UNMATCHEDMETHOD       11 
  59. #define E_INITARGREDEF          12 
  60. #define E_INVALIDSQB            13
  61. #define E_IDLONG                14
  62. #define E_STRLONG               15
  63. #define E_BADCH            16
  64. #define E_PAGES            17
  65. #define E_NOMEMNODES        18
  66. #define E_BAD_TYPE_GC        19
  67.  
  68. #define E_NOMEMSTRINGS        20
  69. #define E_GCS1            21
  70. #define E_GCS2            22
  71. #define E_GCS3            23
  72. #define E_EOF            24
  73. #define E_YACCSTACK        25
  74. #define E_SYNTAX        26
  75. #define E_BADSTRING        27
  76. #define E_DIVBYZERO        28
  77. #define E_BADIL            29
  78.  
  79. #define E_NODEINIT        30
  80. #define E_HASHINIT              31
  81. #define E_STRINGINIT            32
  82. #define E_UNBOUND        33
  83. #define E_BADFUNC        34
  84. #define E_FEWARGS        35
  85. #define E_BADARGS        36
  86. #define E_BADLIST        37
  87. #define E_BADSETF        38
  88. #define E_TOOMANYARGS        39
  89.  
  90. #define E_LAMBDASYNTAX        40
  91. #define E_SLAMBDA        41
  92. #define E_BADPOINTER        42
  93. #define E_BADFILE        43
  94. #define E_BADSL            44
  95. #define E_UNBOUNDFUNC        45
  96. #define E_CHEKZ            46
  97. #define E_INVALIDCFGFILE    47
  98. #define E_BADLABEL        48
  99. #define E_BADRETURN        49
  100.  
  101. #define E_BADCONTINUE        50
  102. #define E_ACCESSORREDEF        51
  103. #define E_DEFCLASSYNTAX        52
  104. #define E_CLASSREDEF        53
  105. #define E_UNBOUNDCLASS        54
  106. #define E_BAD3DP        55
  107. #define E_TEXTMODE              56
  108. #define E_TOOMANYPOINTS         57
  109. #define E_OVERFLOW        58
  110. #define E_MATH            59
  111. #define E_NULLGC        60
  112.  
  113. #define E_STRTOOLONG        61
  114. #define E_BADNCCOUNT        62
  115. #define E_BADGO            63
  116. #define E_NOMEMPOINTS        64
  117. #define E_CLOSSTR2ERR        65
  118.  
  119. #define E_LAST                  66
  120.  
  121.  
  122. int error();
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.